package com.noahplat.user.feign;


import com.noahplat.common.utils.Result;
import com.noahplat.user.pojo.Account;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user", contextId = "accountFeign")
public interface AccountFeign {
    /**
     * 根据Id查询账套信息
     *
     * @param id
     * @return
     */
    @GetMapping("/api/account/findAccInfoById")
    Result<Account> findAccInfoById(@RequestParam("id") Long id);

    /**
     * 获取账套信息
     */
    @GetMapping("/api/account/getAccounts")
    Result getAccounts();
}
